package cn.iocoder.yudao.module.system.controller.admin.userassetscode.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 兑换码使用记录分页查询请求VO
 *
 * @author 系统
 */
@Schema(description = "管理后台 - 兑换码使用记录分页查询请求VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UserAssetsCodeUsageLogPageReqVO extends PageParam {

    @Schema(description = "兑换码ID")
    private Integer codeId;

    @Schema(description = "兑换码")
    private String code;

    @Schema(description = "使用者用户ID")
    private Long usedByUserId;

    @Schema(description = "使用者用户名")
    private String usedByUsername;

    @Schema(description = "使用者IP")
    private String usedIp;

    @Schema(description = "使用开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime usedTimeStart;

    @Schema(description = "使用结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime usedTimeEnd;

    @Schema(description = "使用结果", example = "1")
    private Integer usageResult;

    @Schema(description = "套餐名称")
    private String packageName;

    @Schema(description = "客户名称")
    private String customerName;

    @Schema(description = "链路追踪ID")
    private String traceId;
}